package com.cql.common.core.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cql.common.core.base.BaseEntity;
import lombok.Data;

/**
 * 用户和角色关联表
 *
 * @author cql
 * @email 979243431@qq.com
 * @date 2021-11-15 10:15:09
 */
@Data
@TableName("sys_user_role")
public class SysUserRoleDO extends BaseEntity {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 角色ID
     */
    private Long roleId;

}
